package com.eternal.base.global;

import android.telecom.Call;

import com.eternal.widget.guqiang.ProgressToolbar;

public class ProgressEvent {
    public static final byte START=0;
    public static final byte END=1;
    public static final byte SET=2;
    public static final byte INIT=3;

    public final byte Statue;
    public final float percent;
    public final ProgressToolbar.Callback callback;

    public ProgressEvent(byte statue, float percent) {
        Statue = statue;
        this.percent = percent;
        this.callback = null;
    }

    public ProgressEvent(byte statue) {
        this(statue, 0);
    }

    public ProgressEvent(ProgressToolbar.Callback callback) {
        Statue = END;
        this.percent = 100;
        this.callback = callback;
    }
}
